package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {


    /*分页查询*/
    PageResult pageQuery(QueryPageBean queryPageBean);

    /*添加角色*/
    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    /*编辑角色之角色回显*/
    Role findById(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    void delById(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    List<Integer> findMenuIdsByRoleId(Integer id);

    List<Role> findAll();
}
